package com.weishaoying.example.base.taskexecutor;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author WeiShaoying
 * @date 2018/4/4
 */
@Service
@Async
public class MailService {

    public void sendMail(Integer i) {
        System.out.println("发送邮件：" + i);
    }

    //@Async
    public void sendPictureMail(Integer i) {
        System.out.println("发送图片邮件：" + i);
    }
}
